<template>
	<div>
		<title-header :title="title"></title-header>

		<group class="marginTopNegative">
			<cell v-for='(value,index) in newsTitle' :title="++index+'. '+value.msg" @click.native='turnToNewsDetail' :key="index"></cell>
		</group>
	</div>
</template>

<script>
import { Group, Cell } from 'vux'
import TitleHeader from '@/components/titleHeader.vue'

export default {
  props:{
  	count:{
  		type:Number
  	},
  	xxx:{
  		type:String
  	}
  },
  components: {
    Group,
    Cell,
    TitleHeader
  },
  data() {
    return {
      title: '新闻列表',
      newsTitle: [
        {
          id: 1,
          msg: '晒单有礼活动中奖名单'
        },
        {
          id: 2,
          msg: '新年应有礼-礼品包装晒单赢好礼'
        },
        {
          id: 3,
          msg: '春节期间以旧换新放假通知'
        },
        {
          id: 4,
          msg: '荣耀年货 送礼选我活动中奖名单公布'
        }
      ]
    }
  },
  methods: {
    turnToNewsDetail() {
      //  cosnole.log('123')
      this.$router.push('/newsDetail')
    }
  }
}
</script>

<style scoped="scoped">
.marginTopNegative {
  margin-top: -20px;
}
</style>